<?php
/**
 * PsiFramework
 *
 * Php Simple Framework
 *
 * PHP version 5.3
 *
 * @category  PsiFramework.Plugins.Form.Classes.Util.Json
 * @package   PsiFramework.Plugins.Form.Classes.Util.Json
 * @author    Remi San <remi.san@gmail.com>
 * @copyright 2011 Remi San
 * @license   http://creativecommons.org/licenses/by/3.0/  Creative Commons CC BY 3.0
 * @version   SVN: <svn_id>
 * @link      http://www.psiframework.com/phpdoc/classes/db_\PsiFramework\Plugins\Form\Classes\Util\Json\JsonField.html
 */

namespace PsiFramework\Plugins\Form\Classes\Util\Json;

import("Plugins.Form.Classes.Util.Json.JsonFormElement");
import("Plugins.Form.Classes.Util.Json.Elements.JsonFormInput");
import("Plugins.Form.Classes.Util.Json.Elements.JsonFormTitle");
import("Plugins.Form.Classes.Util.Json.Elements.JsonFormText");

use \PsiFramework\Plugins\Form\Classes\Util\Json\JsonFormElement;
use \PsiFramework\Plugins\Form\Classes\Util\Json\Elements\JsonFormInput;
use \PsiFramework\Plugins\Form\Classes\Util\Json\Elements\JsonFormTitle;
use \PsiFramework\Plugins\Form\Classes\Util\Json\Elements\JsonFormText;

/**
 * The json Field class
 *
 * This is the json field model class
 *
 * @category PsiFramework.Plugins.Form.Classes.Util.Json
 * @package  PsiFramework.Plugins.Form.Classes.Util.Json
 * @author   Remi San <remi.san@gmail.com>
 * @license  http://creativecommons.org/licenses/by/3.0/  Creative Commons CC BY 3.0
 * @link     http://www.psiframework.com/phpdoc/classes/db_\PsiFramework\Plugins\Form\Classes\Util\Json\JsonField.html
 */
class JsonField
{
    /**
     * @var string
     */
    protected /*string*/            $_name ;
    /**
     * @var string
     */
    protected /*string*/            $_class ;
    /**
     * @var string
     */
    protected /*string*/            $_style ;
    /**
     * @var string
     */
    protected /*string*/            $_group ;
    /**
     * @var array
     */
    protected /*JsonFormElement[]*/ $_elements ;

    /**
     * Getter for the name
     * 
     * @return string
     */
    public function getName()
    {
        return $this->_name ;
    }

    /**
     * Setter for the name
     * 
     * @param string $name The name
     * 
     * @return void
     */
    public function setName(/*string*/ $name)
    {
        $this->_name = $name ;
    }
    
    /**
     * Getter for the class
     *
     * @return string
     */
    public function getClass()
    {
    	return $this->_class ;
    }
    
    /**
     * Setter for the class
     *
     * @param string $class The class
     *
     * @return void
     */
    public function setClass(/*string*/ $class)
    {
    	$this->_class = $class ;
    }
    
    /**
     * Getter for the style
     *
     * @return string
     */
    public function getStyle()
    {
    	return $this->_style ;
    }
    
    /**
     * Setter for the style
     *
     * @param string $style The style
     *
     * @return void
     */
    public function setStyle(/*string*/ $style)
    {
    	$this->_style = $style ;
    }

    /**
     * Getter for the group
     *
     * @return string
     */
    public function getGroup()
    {
    	return $this->_group ;
    }
    
    /**
     * Setter for the group
     *
     * @param string $group The group
     *
     * @return void
     */
    public function setGroup(/*string*/ $group)
    {
    	$this->_group = $group ;
    }
    
    /**
     * Getter for the elements
     *
     * @return array
     */
    public function getElements()
    {
        return $this->_elements ;
    }

    /**
     * Setter for the elements
     *
     * @param array $elements The slements
     *
     * @return void
     */
    public function setElements(/*array*/ $elements)
    {
        $this->_elements = $elements ;
    }

}
